<template>
  <!--计划变更-->
  <div>
    <div class="row-box">
      <div class="form-title">{{ modalRow.name }}</div>
      <el-row style="margin: 25px">
        <el-descriptions>
          <el-descriptions-item label="申请人">{{modalRow.row.request}}</el-descriptions-item>
          <el-descriptions-item label="申请日期">2024-03-04</el-descriptions-item>
          <el-descriptions-item label="申请部门">{{modalRow.row.projectName}}</el-descriptions-item>
          <el-descriptions-item label="N">计划变更-20241023</el-descriptions-item>
          <el-descriptions-item label="申请单位">{{modalRow.row.projectName}}</el-descriptions-item>
        </el-descriptions>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">基本信息</span>
      </div>
      <el-row style="margin: 25px">
        <el-descriptions>
          <el-descriptions-item label="项目名称">{{ modalRow.row.projectName }}</el-descriptions-item>
          <el-descriptions-item label="项目编号">SY758979827896</el-descriptions-item>
          <el-descriptions-item label="负责人">{{modalRow.row.request}}</el-descriptions-item>
          <el-descriptions-item label="说明">申请计划延后</el-descriptions-item>
          <el-descriptions-item label="相关附件"></el-descriptions-item>
        </el-descriptions>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">变更计划</span>
      </div>
      <form-table tableState="jhbg" status="read" :tableColumns="tableColumns" :tableData="tableData" style="margin: 25px"></form-table>
    </div>
  </div>
</template>

<script>
import FormTable from "@/views/leader/components/formTable";

export default {
  name: "planChange",
  components: {FormTable},
  data(){
    return{
      tableColumns:[
        { prop: 'rwmc', label: '任务名称', align: 'center', type:'input' },
        { prop: 'fzr', label: '负责人', align: 'center', type:'input' },
        { prop: 'ks', label: '开始日期', align: 'center', type:'date' },
        { prop: 'js', label: '结束日期', align: 'center', type:'date' },
        { prop: 'gq', label: '工期', align: 'center', type:'input' },
        { prop: 'lcb', label: '里程碑', align: 'center', type:'checkbox' },
        { prop: 'tjcg', label: '需提交成果', align: 'center', type:'input' },
      ],
      tableData:[]
    }
  },
  props: ['modalRow'],
  created() {
    if(this.modalRow.tableData){
      this.tableData = this.modalRow.tableData
    }
  },
}
</script>

<style scoped>
.row-box {
  box-sizing: border-box;
  border-radius: 4px;
  background-color: #fff;
  padding: 15px;
}

.form-title {
  line-height: 50px;
  background: rgb(66, 185, 131);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.form-small-title {
  border-bottom: solid 2px #C0C4CC;
  padding-bottom: 10px;
}

.form-divider {
  width: 5px;
  height: 26px;
  background: rgb(66, 185, 131);
}

.form-small-font {
  font-size: 19px;
  font-weight: 600;
  color: #303133;
}
</style>
